package com.sskj.common.util;

import nl.basjes.parse.useragent.UserAgent;
import nl.basjes.parse.useragent.UserAgentAnalyzer;

public class UserAgentUtil {

    private static final UserAgentAnalyzer ANALYZER = UserAgentAnalyzer.newBuilder()
            .hideMatcherLoadStats()
            .withCache(10000)
            .build();

    public static UserAgent parse(String userAgentString) {
        return ANALYZER.parse(userAgentString);
    }
}
